<%--
  Created by IntelliJ IDEA.
  User: deeping
  Date: 2021/10/12
  Time: 下午6:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="book" method="post">
    <input type="text" name="bookName">
    <input type="submit"/>
</form>
<table border="1px">
    <thead>
    <tr>
        <th>编号</th>
        <th>书名</th>
        <th>价格</th>
        <th>作者</th>
        <th class="text-center">操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${books}" var="book">

    <tr>
        <td>${book.bookId}</td>
        <td>${book.bookName}</td>
        <td>${book.price}</td>
        <td>${book.bookAuthor}</td>
        <td class="text-center">
            <button type="button" class="btn btn-primary btn-xs">编辑</button>
            <button type="button" class="btn btn-danger btn-xs">删除</button>
        </td>
    </tr>
    </tbody>
    </c:forEach>
</table>
</body>
</html>
